package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2022-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_product_stock_flowing")
public class ProductStockFlowingDo extends Model<ProductStockFlowingDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("type")
    private String type;

    @TableField("note_no")
    private String noteNo;

    @TableField("product_id")
    private Long productId;

    @TableField("storage_id")
    private Long storageId;

    /**
     * 可用量
     */
    @TableField("good_quantity")
    private Integer goodQuantity;

    @TableField("left_good_quantity")
    private int leftGoodQuantity;

    /**
     * 次品量
     */
    @TableField("bad_quantity")
    private Integer badQuantity;

    @TableField("left_bad_quantity")
    private int leftBadQuantity;

    @TableField("good_locking_quantity")
    private Integer goodLockingQuantity;

    @TableField("left_good_locking_quantity")
    private int leftGoodLockingQuantity;

    @TableField("bad_locking_quantity")
    private Integer badLockingQuantity;

    @TableField("left_bad_locking_quantity")
    private int leftBadLockingQuantity;

    @TableField("create_by")
    private Long createBy;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("shop_id")
    private Long shopId;


    @TableField("status")
    private String status;

    @TableField("finish_by")
    private Long finishBy;


    @TableField("finish_time")
    private Date finishTime;



    /**
     * 备注
     */
    @TableField("tips")
    private String tips;

    @TableField("company_id")
    private Long companyId;

    /**
     * 库位id
     */
    @TableField("rack_id")
    private Long rackId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
